<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Allot_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-allot_sn" data-rule="required" class="form-control" name="row[allot_sn]" type="text" value="{$row.allot_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Allottime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-allottime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[allottime]" type="text" value="{:$row.allottime?datetime($row.allottime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bin_origin')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-bin_origin" data-rule="required" class="form-control selectpicker" name="row[bin_origin]">
                {foreach name="binOriginList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.bin_origin"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Traffic_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-traffic_unit" data-rule="required" class="form-control" name="row[traffic_unit]" type="number" value="{$row.traffic_unit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Allot_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-allot_number" data-rule="required" class="form-control" name="row[allot_number]" type="number" value="{$row.allot_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bin_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bin_type" data-rule="required" class="form-control" name="row[bin_type]" type="text" value="{$row.bin_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bin_native')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bin_native" data-rule="required" class="form-control" name="row[bin_native]" type="number" value="{$row.bin_native|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Take_yard_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-take_yard_id" data-rule="required" data-source="take/yard/index" class="form-control selectpage" name="row[take_yard_id]" type="text" value="{$row.take_yard_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Take_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-take_number" data-rule="required" class="form-control" name="row[take_number]" type="text" value="{$row.take_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Salesman_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-salesman_id" data-rule="required" data-source="salesman/index" class="form-control selectpage" name="row[salesman_id]" type="text" value="{$row.salesman_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unit_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unit_price" data-rule="required" class="form-control" name="row[unit_price]" type="number" value="{$row.unit_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Currency_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-currency_type" data-rule="required" class="form-control selectpicker" name="row[currency_type]">
                {foreach name="currencyTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.currency_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deadlinetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deadlinetime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[deadlinetime]" type="text" value="{:$row.deadlinetime?datetime($row.deadlinetime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tenancy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tenancy" class="form-control" name="row[tenancy]" type="number" value="{$row.tenancy|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Overdue_fee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overdue_fee" class="form-control" name="row[overdue_fee]" type="number" value="{$row.overdue_fee|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Aim_yard_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-aim_yard_id" data-rule="required" data-source="aim/yard/index" class="form-control selectpage" name="row[aim_yard_id]" type="text" value="{$row.aim_yard_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Take_null_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-take_null_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[take_null_time]" type="text" value="{:$row.take_null_time?datetime($row.take_null_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50">{$row.remark|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
